<template>
  <div id="app">
    <router-view v-if="isLoad" />
  </div>
</template>

<script>

import request from "@/router/axios";
import {urllist} from "@/config/env";
import website from "@/config/website";

export default {
  name: "app",
  data() {
    return {
      isLoad: false
    };
  },
  created() {

  },
  mounted(){
    //请求接口获取前端配置
    request.get(urllist.system + '/core/system/configure').then((res)=>{
      for (const key in res.data.data) {
        website[key] = res.data.data[key];
      }
    }).finally(()=>{
      this.isLoad = true;
    });

  },
  methods: {},
  computed: {}
};
</script>
<style lang="scss">
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
</style>